package com.zb.designmode.bridge.poststation;

import com.zb.designmode.bridge.poststation.thing.impl.Letter;
import com.zb.designmode.bridge.poststation.post.impl.MarkPost;
import com.zb.designmode.bridge.poststation.post.impl.SimplePost;
import com.zb.designmode.bridge.poststation.post.IPost;
import com.zb.designmode.bridge.poststation.thing.impl.Parcel;

/**
 * <p>description：测试类</p>
 * <p>copyright： copyright(C)2016-2099</p>
 * <p>Life is short,we need passion</p>
 * <p>Summary： </p>
 * <p>instructions： </p>
 * Date 3/16/21</p>
 * Author mac
 *
 * @version 1.0
 */
public class Test {
    public static void main(String[] args) {
        IPost p = new SimplePost();
        Letter letter = new Letter("letter", p);
        letter.post();

        IPost pp = new MarkPost();
        Letter letter1 = new Letter("letter", pp);
        letter1.post();

        Parcel parcel = new Parcel("package", pp);
        parcel.post();
    }
}
